package Zhouliu;
import java.util.Scanner;
public class learn1 {
    public static void main(String[] args){
        //创建对象
          learn test=new learn();
        Scanner sc=new Scanner(System.in);
        System.out.println("请输入新生资源和现有资源、人数，和生活多少年");
        //控制台输入数据
        test.zy=sc.nextInt();
        test.nzy=sc.nextInt();
        test.people=sc.nextInt();
        test.people1=sc.nextInt();
        test.year=sc.nextInt();
        test.year1=sc.nextInt();
        //总共可以生活多少年
       test.age=(test.zy+test.nzy)*test.people*test.year-(test.zy+test.nzy)*test.people*test.year1;
       test.print(test.zy,test.nzy,test.age);
    }
}
